package com.trickytriad.model
{	
	/**
	 * CardData class, stores the data for an instance of a card.
	 **/
	[Bindable]
	public class CardData
	{	
		public var name:String;			 // Name of the card
		public var imgname:String;	 	 // Name of the card's image (fully qualified, i.e. http://trickytriads.com/...)
		public var strengths:Array;      // 4 int array, strengths Top Right Bottom Left
		public var element:ElementData;	 // Element
		public var card_id:uint;         // Card ID
		public var description:String;   // Description string
		public var cost:uint;            // Card cost
		public var level:uint;           // Level integer
			
		
		/**
		 *  Constructor, generates card data from the given strings.
		 * @param inimgname Note that this image name must be the COMPLETE path to the image.
		 **/
		public function CardData(inname:String, inimgname:String, instrengths:Array, inelement:Number, incard_id:uint, indescription:String, incost:uint, inlevel:uint)
		{
			this.name = inname;
			this.imgname = inimgname;
			this.strengths = instrengths;
			this.element = new ElementData(inelement);
			this.card_id = incard_id;
			this.description = indescription;
			this.cost = incost;
			this.level = inlevel;
		}
			
		
	}
}